<div id="tiga_ba">
	<div id="tiga_baa">Pindah Data Provinsi</div>
	<div id="tiga_bab"></div>
	<div class="clear"></div>
</div>
<?php
$id = $_GET['id'];
$sql="select * from propinsi where id_propinsi = '$id'";
$qry=mysql_query($sql);
$hasil=mysql_fetch_array($qry);
?>
<form action="utama.php?module=mod_provinsi&act=hapus2" onsubmit="return confirm('Anda yakin akan memindah data ?')" method="post" enctype="multipart/form-data">
	<table style="margin: 10px 15px 10px 15px;">
		<tr>
			<td>Provinsi</td>
			<td>&nbsp;</td>
			<td>
				<input name="nama" type="text" class="input" id="nama" value="<?php echo "$hasil[propinsi]";?>" disabled/>
				<input name="id" type="hidden" value="<?php echo $id;?>">
			</td>
		</tr>
		<tr>
			<td>Pindah ke</td>
			<td>&nbsp;</td>
			<td>
				<select name="transfer" id="transfer" class="input">
					<?php
						$data = mysql_query("select id_propinsi,propinsi from propinsi where aktif = 'Y' and id_propinsi <> $id");
						while($hasil = mysql_fetch_array($data)){
							echo "<option value=$hasil[id_propinsi]>$hasil[propinsi]</option>";
						}
					?>
				</select>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td><input name="submit" type="submit" class="button" value="Proses" /></td>
		</tr>
	</table>
</form>